{include file="public/header" /}
<style>
    .gray-bg {
        background: #fff;
    }

    .wrapper {
        padding: 0;
    }

    .asdh5 h5 {
        border-top: 1px dotted #ccc;
        padding-top: 20px;
        margin-top: 20px;
    }
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <form class="form-horizontal" method="post">
            <div class="col-sm-12">
                <div class="ibox-content">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">状态：</label>
                        <div class="col-sm-9">
                            <div class="radio i-checks">
                                <label>
                                    <input type="radio" value="0" name="is_hidden" {present name="name"}{eq name="name.is_hidden" value="0"}checked{/eq}{else /}checked{/present}>显示
                                </label>
                                <label>
                                    <input type="radio" value="1" name="is_hidden" {present name="name"}{eq name="name.is_hidden" value="1"}checked{/eq}{/present}>隐藏
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">类型：</label>
                        <div class="col-sm-9">
                            <div class="radio i-checks">
                                <label onclick="channel_sex_change(2)">
                                    <input type="radio" value="2" name="channel_sex" {present name="name"}{eq name="name.channel_sex" value="2"}checked{/eq}{else /}checked{/present}>金币
                                </label>
                                <label onclick="channel_sex_change(1)">
                                    <input type="radio" value="1" name="channel_sex" {present name="name"}{eq name="name.channel_sex" value="1"}checked{/eq}{/present}>豆豆
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">价格：</label>
                        <div class="col-sm-9">
                            <input name="price" type="text"  class="form-control" value="{present name='name'}{$name.price}{/present}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">首充价：</label>
                        <div class="col-sm-9">
                            <input name="first_price" type="text"  class="form-control" value="{present name='name'}{if condition='$name.first_price > 0'}{$name.first_price}{/if}{/present}">
                            <span class="help-block m-b-none" style="color:red">未设置首充优惠价，则显示原价</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">币值：</label>
                        <div class="col-sm-9">
                            <input name="money" type="text"  class="form-control" value="{present name='name'}{$name.money}{/present}">
                        </div>
                    </div>
                    <div class="form-group" id="reward_money">
                        <label class="col-sm-2 control-label">赠送金币：</label>
                        <div class="col-sm-9">
                            <input name="reward_money" type="text"  class="form-control" value="{present name='name'}{if condition='$name.reward_money > 0'}{$name.reward_money}{/if}{/present}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">赠送VIP：</label>
                        <div class="col-sm-9">
                            <select class="form-control" name="reward_noble">
                                <option value=""></option>
                                {volist name='nobles' id='v'}
                                    <option value="{$v.id}" {present name="name"}{if condition="$name.reward_noble == $v.id"}selected="selected"{/if}{/present}>{$v.name}</option>
                                {/volist}
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">VIP天数：</label>
                        <div class="col-sm-9">
                            <input name="reward_noble_day" type="text"  class="form-control" value="{present name='name'}{if condition='$name.reward_noble_day'}{$name.reward_noble_day}{/if}{/present}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">排序：</label>
                        <div class="col-sm-9">
                            <input name="sort" type="text"  class="form-control" value="{present name='name'}{$name.sort}{else /}0{/present}">
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
{include file="public/footer" /}
{load href="__PLUGINS__iCheck/icheck.min.js"}
{load href="__PLUGINS__iCheck/custom.css"}
<script type="text/javascript">
    $(document).ready(function(){
        $(".i-checks").iCheck({
            checkboxClass: "icheckbox_square-green",
            radioClass: "iradio_square-green",
        })
    })

    function channel_sex_change(v) {
        if (v==2) {
            $('#reward_money').show()
        } else {
            $('#reward_money').hide()
        }
    }
</script>
{include file="public/bottom" /}
 
